package com.qidianit.mes.device.service;

import com.qidianit.common.pojo.MESResult;
import com.qidianit.mes.device.vo.DeviceMainPlanOfItem;
import com.qidianit.mes.device.vo.DeviceMainPlanOfLedger;
import com.qidianit.mes.pojo.DeviceMainPlan;

public interface DeviceMainPlanService {
    MESResult list(String planCode, String planName, String planType, String planStatus, int page, int limit);

    MESResult add(DeviceMainPlan deviceMainPlan);

    MESResult edit(DeviceMainPlan deviceMainPlan);

    MESResult delete(String id);

    MESResult listItemsByPlanId(String planCode, int page, int limit);

    MESResult listledgersByPlanId(String planCode, int page, int limit);

    MESResult addMainPlanOfItem(DeviceMainPlanOfItem mainPlanOfItem);

    MESResult addMainPlanOfLedger(DeviceMainPlanOfLedger deviceMainPlanOfLedger);

    MESResult deleteMainPlanOfItem(DeviceMainPlanOfItem mainPlanOfItem);

    MESResult deleteMainPlanOfLedger(DeviceMainPlanOfLedger deviceMainPlanOfLedger);
}
